//
//  TTILanguageTool.h
//  DanoneEA
//
//  Created by Senela on 16/12/26.
//  Copyright © 2016年 翔傲科技. All rights reserved.
//


#define FGGetStringWithKeyFromTable(key)    [[TTILanguageTool sharedInstance] getStringForKey:key withTable:@"Localizable"]

#define  DNNSLocalizedString(key, defalutContent)   FGGetStringWithKeyFromTable(key)


#define English @"en" //英语
#define Chinese @"zh-Hans"  //中文
#define Malay @"ms-MY"  //马来语
#define Thai @"th-TH" //泰语
#define Turkish @"tr"  //土耳其语
#define Polish @"pl" //波兰语
#define German @"de"  //德语

#import <Foundation/Foundation.h>

@interface TTILanguageTool : NSObject

+(id)sharedInstance;

/**
 *  返回table中指定的key的值
 *
 *  @param key   key
 *  @param table table
 *
 *  @return 返回table中指定的key的值
 */
-(NSString *)getStringForKey:(NSString *)key withTable:(NSString *)table;
 

/**
 *  设置新的语言
 *
 *  @param language 新语言
 */
-(void)setNewLanguage:(NSString*)language;

@end
